home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / src / pvmwin.h < prev    next >
C/C++ Source or Header  |  1997-07-22  |  3KB  |  118 lines

  1.  
  2. /* $Id: pvmwin.h,v 1.1 1997/06/27 20:24:59 pvmsrc Exp $ */
  3.  
  4. /*
  5.  *         PVM version 3.4:  Parallel Virtual Machine System
  6.  *               University of Tennessee, Knoxville TN.
  7.  *           Oak Ridge National Laboratory, Oak Ridge TN.
  8.  *                   Emory University, Atlanta GA.
  9.  *      Authors:  J. J. Dongarra, G. E. Fagg, M. Fischer, 
  10.  *          G. A. Geist, J. A. Kohl, R. J. Manchek, P. Mucci,
  11.  *         P. M. Papadopoulos, S. L. Scott, and V. S. Sunderam
  12.  *                   (C) 1997 All Rights Reserved
  13.  *
  14.  *                              NOTICE
  15.  *
  16.  * Permission to use, copy, modify, and distribute this software and
  17.  * its documentation for any purpose and without fee is hereby granted
  18.  * provided that the above copyright notice appear in all copies and
  19.  * that both the copyright notice and this permission notice appear in
  20.  * supporting documentation.
  21.  *
  22.  * Neither the Institutions (Emory University, Oak Ridge National
  23.  * Laboratory, and University of Tennessee) nor the Authors make any
  24.  * representations about the suitability of this software for any
  25.  * purpose.  This software is provided ``as is'' without express or
  26.  * implied warranty.
  27.  *
  28.  * PVM version 3 was funded in part by the U.S. Department of Energy,
  29.  * the National Science Foundation and the State of Tennessee.
  30.  */
  31.  
  32. /* cruft file for different compiler specifications 
  33. *  like Watcom, Visual, Borland ... 
  34. *
  35. *  added __fortran stub    06/21/1997     Fischer
  36. */
  37.  
  38. #ifdef WIN32
  39. #define __fortran __stdcall
  40. #endif
  41. #define STRICT
  42. #include <sys/timeb.h>
  43. #include <time.h>
  44. #include <process.h>
  45. #include <winsock.h>
  46. #include <windows.h>
  47.  
  48. #include <stdio.h>
  49. #include <io.h>
  50.  
  51. #ifndef HASSTDLIB
  52. #define HASSTDLIB
  53. #endif
  54.  
  55. #ifndef SYSVBFUNC
  56. #define SYSVBFUNC
  57. #endif
  58.  
  59. #ifndef SYSVSTR
  60. #define SYSVSTR
  61. #endif
  62.  
  63. #ifndef HASERRORVARS
  64. #define HASERRORVARS
  65. #endif
  66.  
  67. #ifndef NOWAIT3
  68. #define NOWAIT3
  69. #endif
  70.  
  71. #ifndef NOGETDTBLSIZ
  72. #define NOGETDTBLSIZ
  73. #endif
  74.  
  75. #ifndef ARCHCLASS 
  76. #define ARCHCLASS "WIN32"
  77. #endif
  78.  
  79. #ifndef NOUNIXDOM
  80. #define NOUNIXDOM
  81. #endif
  82.  
  83. #ifndef NOTMPNAM
  84. #define NOTMPNAM
  85. #endif
  86.  
  87. #ifndef HASERRORVARS
  88. #define HASERRORVARS
  89. #endif
  90. /* sys/param.h doesn't exist: */
  91. #define MAXHOSTNAMELEN 64
  92. #define MAXPATHLEN 64
  93.        
  94. #ifndef TIME
  95. #define TIME
  96. struct timezone {
  97.     int tz_minuteswest;
  98.     int tz_dsttime;
  99. };
  100. #endif
  101.  
  102.  
  103. /* to keep the compiler satisfied */
  104. extern int gettimeofday(struct timeval *, struct timezone *);
  105. extern char *MyGetUserName();
  106. extern int kill(int,int, int);
  107.  
  108. extern HANDLE win32_open_file( char *);
  109. extern HANDLE win32_create_file(char *s, int );
  110. extern int win32_close_file(HANDLE);
  111. extern int win32_write_file(HANDLE,char *,int);
  112. extern int win32_read_file(HANDLE,char *, int);
  113. extern int win32_write_socket (SOCKET, const char FAR *, int);
  114. extern int win32_read_socket (SOCKET, char FAR *, int);
  115.  
  116. extern void Wait(HANDLE id, DWORD *prv);
  117.  
  118.